package com.qindian.coupontest;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Locale;

/**
 * Author: Li
 * Date: 2018/4/28 0028
 * Description:
 */

public class TimeFormatUtil {
    public static String format(long time,String pattern){
        return new SimpleDateFormat(pattern, Locale.CHINA).format(new Date(time));
    }
}
